<?php
/*


find / -name php-fpm

启动php-fpm
/usr/local/php/sbin/php-fpm

netstat -anp |grep php-fpm
netstat -anp |grep 9000

netstat -tunpl | grep 6379
netstat -tunpl | grep 9000

pkill php-fpm
killall php-fpm

php重启
/usr/local/php/sbin/php-fpm &
关闭nginx
/usr/local/nginx/sbin/nginx -s stop   //关闭服务器
重启nginx
/usr/local/nginx/sbin/nginx  开启服务器
reload： 
/usr/local/nginx/sbin/nginx -s reload 
start： 
/usr/local/php/sbin/php-fpm 
 
 查看php-fpm进程数：
 ps aux | grep -c php-fpm
 
 
 
 
 /etc/init.d/php-fpm restart    # typical
/etc/init.d/php5-fpm restart   # debian-style
/etc/init.d/php7.0-fpm restart # debian-style PHP 7




service php-fpm restart    # typical
service php5-fpm restart   # debian-style
service php7.0-fpm restart # debian-style PHP 7



restart php7.0-fpm         # typical (ubuntu is debian-based) PHP 7
restart php5-fpm           # typical (ubuntu is debian-based)
restart php-fpm            # uncommon


systemctl restart php-fpm.service    # typical
systemctl restart php5-fpm.service   # uncommon
systemctl restart php7.0-fpm.service # uncommon PHP 7



#!/bin/sh

echo "Stopping php-fpm..."
launchctl unload -w ~/Library/LaunchAgents/homebrew-php*.plist

echo "Starting php-fpm..."
launchctl load -w ~/Library/LaunchAgents/homebrew-php*.plist

echo "php-fpm restarted"
exit 0


chmod ug+x /usr/local/etc/php/fpm-restart
cd /usr/local/sbin
ln -s /usr/local/etc/php/fpm-restart


udo pkill php5-fpm; sudo service php5-fpm start


$ cat /etc/php-fpm.pid
815
$ sudo kill -USR2 815



kill $(ps -o pid,comm | grep php-fpm7 | awk '{print $1}')


*/
?>